//
//  PayMoneyDetailInfoOfUserTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/7/16.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "PayMoneyDetailInfoOfUserTableViewCell.h"

@implementation PayMoneyDetailInfoOfUserTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self creatUI];
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.nameLabel];
    [self.contentView addSubview:self.userNameLabel];
    [self.contentView addSubview:self.zoneLabel];
    [self.contentView addSubview:self.zoneNameLabel];
    [self.contentView addSubview:self.roomLabel];
    [self.contentView addSubview:self.roomNumLabel];
    [self.contentView addSubview:self.dataLabel];
    [self.contentView addSubview:self.timeLabel];
}

-(void)send
{
    self.userNameLabel.text = @"张三";
    self.zoneNameLabel.text = @"广百花园";
    self.roomNumLabel.text = @"4栋4单元1b161";
    self.timeLabel.text = @"2017-12-12";
}

-(UILabel *)nameLabel
{
    if (_nameLabel == nil) {
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 17, 100, 21)];
        _nameLabel.font = font(16);
        _nameLabel.textColor = SFM51;
        _nameLabel.textAlignment = NSTextAlignmentLeft;
        _nameLabel.text = @"业主名称：";
    }
    return _nameLabel;
}

-(UILabel *)userNameLabel
{
    if (_userNameLabel == nil) {
        _userNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(137, 17, WIDTH - 155, 21)];
        _userNameLabel.font = font(16);
        _userNameLabel.textColor = SFM153;
        _userNameLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _userNameLabel;
}

-(UILabel *)zoneLabel
{
    if (_zoneLabel == nil) {
        _zoneLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 51, 100, 21)];
        _zoneLabel.font = font(16);
        _zoneLabel.textColor = SFM51;
        _zoneLabel.textAlignment = NSTextAlignmentLeft;
        _zoneLabel.text = @"小区名称：";
    }
    return _zoneLabel;
}

-(UILabel *)zoneNameLabel
{
    if (_zoneNameLabel == nil) {
        _zoneNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(137, 51, WIDTH - 155, 21)];
        _zoneNameLabel.font = font(16);
        _zoneNameLabel.textColor = SFM153;
        _zoneNameLabel.textAlignment = NSTextAlignmentLeft;
        _zoneNameLabel.text = @"小区名称：";
    }
    return _zoneNameLabel;
}

-(UILabel *)roomLabel
{
    if (_roomLabel == nil) {
        _zoneLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 85, 100, 21)];
        _zoneLabel.font = font(16);
        _zoneLabel.textColor = SFM51;
        _zoneLabel.textAlignment = NSTextAlignmentLeft;
        _zoneLabel.text = @"门牌号：";
    }
    return _zoneLabel;
}

-(UILabel *)roomNumLabel
{
    if (_roomNumLabel == nil) {
        _roomNumLabel = [[UILabel alloc] initWithFrame:CGRectMake(137, 85, WIDTH - 155, 21)];
        _roomNumLabel.font = font(16);
        _roomNumLabel.textColor = SFM153;
        _roomNumLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _roomNumLabel;
}

-(UILabel *)dataLabel
{
    if (_dataLabel == nil) {
        _dataLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 119, 100, 21)];
        _dataLabel.font = font(16);
        _dataLabel.textColor = SFM51;
        _dataLabel.textAlignment = NSTextAlignmentLeft;
        _dataLabel.text = @"缴费日期：";
    }
    return _dataLabel;
}

-(UILabel *)timeLabel
{
    if (_timeLabel == nil) {
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(137, 119, WIDTH - 155, 21)];
        _timeLabel.font = font(16);
        _timeLabel.textColor = SFM153;
        _timeLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _timeLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
